home *** CD-ROM | disk | FTP | other *** search
- /*
- **
- ** Load To IBrowse - ARexx script for HTMLEditor
- ** $VER: LoadToIBrowse.hrx © Adam 'Sherwood' Zaparcinski
- ** This script saves actually edited file and loads this file to IBrowse
- ** Tested with AWeb 1.1
- **
- */
-
- options results
- address 'HTMLEDIT.1'
-
- /* save edited file */
-
- he_save
-
- /* get name of file (with path) */
-
- he_getfilename
- URL=RESULT
- URL=INSERT("file:///",URL)
-
- /* path to IBrowse should be specified as an argument */
- PARSE ARG BROWSERPATH
-
- /* check if IBrowse is running and run it if isnt */
- IF ~SHOW('P','IBROWSE') THEN DO
- ADDRESS COMMAND
- 'RUN >NIL:' BROWSERPATH
- 'SYS:rexxc/WaitForPort' IBROWSE
- IF RC>0 THEN DO
- say "No port"
- EXIT 5
- END
- END
-
- /* now load our file to IBrowse */
- ADDRESS IBROWSE
- GotoURL URL
-
- exit